/* css 初始化 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none; //去掉列表前面的标记·
}

/*引用字库*/
@font-face {
  font-family: "electronicFont";
  src: url("../font/DS-DIGI-1.ttf");
}
body {
  background: url(../images/background.jpg) no-repeat top center; /* 背景图不平铺 */
  background-size: cover; /* 让背景图基于容器大小伸缩 */
  background-attachment: fixed; /* 当内容高度大于图片高度时，背景图像的位置相对于viewport固定。此条属性必须设置否则可能无效 */
}
header {
  background-color: rgba(6, 24, 189, 0.616);
  border: 1px solid rgb(2, 2, 177);
  height: 1.1rem;
  h1 {
    font-size: 0.475rem;
    text-align: center;
    height: 1rem;
    color: #fff;
    line-height: 1rem;
  }
  .showTime {
    position: absolute;
    right: 0.375rem;
    top: 0;
    line-height: 0.9375rem;
    color: rgba(255, 255, 255.7);
    font-size: 0.25rem;
  }
}
//页面主题盒子
.mainbox {
  display: flex;
  min-width: 1024px; //使用于大屏幕，不在手机端使用
  max-width: 1920px;
  margin: 0 auto;
  padding: 0.125rem 0.125rem 0 0.125rem;
  .column {
    flex: 3;
  }
  .column:nth-child(2) {
    flex: 5;
    margin: 0 0.125rem 0.1875rem;
    overflow: hidden;
  }
  .panel {
    position: relative;
    height: 3.875rem;
    padding: 0 0.1875rem 0.5rem;
    margin-bottom: 0.1875rem;
    background-color: rgba(3, 1, 100, 0.212);
    &::before {
      position: absolute;
      top: 0;
      left: 0;
      width: 10px;
      height: 10px;
      border-left: 2px solid #03019bd7;
      border-top: 2px solid #03019bd7;
      content: "";
    }
    &::after {
      position: absolute;
      top: 0;
      right: 0;
      width: 10px;
      height: 10px;
      border-right: 2px solid #03019bd7;
      border-top: 2px solid #03019bd7;
      content: "";
    }
    .panel-footer {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: #fff;
      &::before {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 10px;
        height: 10px;
        border-left: 2px solid #03019bd7;
        border-bottom: 2px solid #03019bd7;
        content: "";
      }
      &::after {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 10px;
        height: 10px;
        border-right: 2px solid #03019bd7;
        border-bottom: 2px solid #03019bd7;
        content: "";
      }
    }
    h2 {
      height: 0.6rem;
      color: #fff;
      line-height: 0.6rem;
      font-size: 20px;
      text-align: center;
      a {
        color: #fff;
        text-decoration: none;
        margin-left: 0.125rem;
      }
    }
    .chart {
      height: 3rem;
    }
  }
}
.no {
  background: rgba(32, 72, 192, 0.6);
  padding: 0.1875rem;
  .no-header {
    position: relative;
    border: 1px solid rgba(25, 186, 139, 0.7);
    &::before {
      position: absolute;
      top: 0;
      left: 0;
      content: "";
      height: 10px;
      width: 30px;
      border-top: 2px solid #03019bd7;
      border-left: 2px solid #03019bd7;
    }
    &::after {
      position: absolute;
      bottom: 0;
      right: 0;
      content: "";
      height: 10px;
      width: 30px;
      border-bottom: 2px solid #03019bd7;
      border-right: 2px solid #03019bd7;
    }
    ul {
      display: flex;
      li {
        flex: 1;
        line-height: 1rem;
        font-size: 0.875rem;
        color: #ffeb7b;
        text-align: center;
        font-family: "electronicFont";
        position: relative;
        &::after {
          content: "";
          position: absolute;
          top: 25%;
          right: 0;
          height: 50%;
          width: 1px;
          background: rgba(255, 255, 255, 0.2);
        }
      }
    }
  }
  .no-body {
    ul {
      display: flex;
      li {
        flex: 1;
        text-align: center;
        height: 0.5rem;
        line-height: 0.5rem;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.225rem;
        padding-top: 0.125rem;
      }
    }
  }
}
.map {
  position: relative;
  height: 10.125rem;
  .map1 {
    width: 12rem;
    height: 12rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../images/ground2.png);
    background-size: 100% 100%;
    opacity: 0.9; //透明度
    animation: rotate1 15s linear infinite; //linear匀速 infinite无限循环
  }
  .map2 {
    width: 7rem;
    height: 7rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url(../images/ground3.png);
    background-size: 100% 100%;
    animation: rotate2 15s linear infinite;
    opacity: 0.4; //透明度
  }
  .chart {
    width: 100%;
    height: 100%;
  }
}
//控制元素旋转动画
@keyframes rotate1 {
  form {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes rotate2 {
  form {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
// 约束屏幕尺寸
@media screen and(max-width:1024px) {
  html {
    font-size: 42px !important;
  }
}
@media screen and(max-width:1920px) {
  html {
    font-size: 80px !important;
  }
}
